package com.lqd.mall.interaction.system;

import com.lqd.mall.interaction.basis.BasisEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * @author 零起点
 * @create 2022-02-20 9:26
 */
@Setter
@Getter
@ToString
@Entity
@Table(name = "sys_role")
public class SysRoleEntity extends BasisEntity {

    @Id
    @Column(name = "role_id")
    @GeneratedValue(strategy= GenerationType.IDENTITY)
    private Long roleId;

    @Column(name = "role_name")
    private String roleName;

    @Column(name = "role_key")
    private String roleKey;

    @Column(name = "role_sort")
    private Long roleSort;

    @Column(name = "data_scope")
    private String dataScope;

    @Column(name = "menu_check_strictly")
    private Long menuCheckStrictly;

    @Column(name = "dept_check_strictly")
    private Long deptCheckStrictly;

    @Column(name = "status")
    private String status;


}
